<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>{$pageData.title}</title>
		<link rel="stylesheet" href="__STATIC__/manage/css/admin.css" />
		<link rel="stylesheet" href="__STATIC__/manage/js/layui/css/layui.css" />
		<script type="text/javascript" src="__STATIC__/manage/js/jquery.min.js"></script>
		{include file="inc/script" /}
		<script type="text/javascript" src="__STATIC__/manage/js/public.js"></script>
		<script type="text/javascript" src="__STATIC__/manage/js/layui/layui.js"></script>
		<style>
			body { min-width:500px!important;}
			#content { padding: 20px 0;}
			#author,#date { width: 100%; float: right;}
			#author p,#date p { width: 200px; float: right; text-align: center;}
		</style>
	</head>
<body>
	
	<div class="right-center height-at">
		<div class="center-tab magin-topn" id="result" style="overflow: auto;">
				
				<div id="content"></div>
				<div id="author"><p></p></div>
				<div id="date"><p></p></div>
				
		</div>
	</div>


        <script type="text/javascript">
			function getDatas(){
				$.ajax({
					'type':'post',
					'dataType':'json',
					'url':'{:url('notice.api/row')}',
					'data':'id={$id}',
					'success':function(data){
						$("#date p").html(data.create_date);
						$("#author p").html(data.username);
						$("#content").html(data.content);
					}
				});
			}

			function del(){
				$.ajax({
					'type':'post',
					'dataType':'json',
					'url':'{:url('notice.handle/del')}',
					'data':'id={$id}&token='+token,
					'success':function(data){
						alert(data.msg);
						location.href = '{:url('index')}';
					}
				});
			}

			getDatas();
		</script>	
</body>
</html>

